package com.zhy.generator.commons.base;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "BaseTreeVO")
public class BaseTreeVO<T> implements Serializable {
    private static final long serialVersionUID = 7154472201496643731L;

    @ApiModelProperty(value = "元数据")
    private T source;

    @ApiModelProperty(value = "下级")
    private List<BaseTreeVO<T>> subs;
}
